package com.woniuxy.lrz.carlproject.controller.form.formcar;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;

@Data
@ApiModel("新增/修改车型信息，接收前端传递参数")
public class CarTypeAddOrUpdateForm {

    @ApiModelProperty("车型ID")
    private Integer carTypeId;

    @ApiModelProperty("车型名称")
    @NotBlank(message = "车型名称不能为空")
    private String carTypeName;

    @ApiModelProperty("关联汽车品牌id")
    @NotNull(message = "汽车品牌Id不能为空")
    private Integer carBrandId;

//    @ApiModelProperty("车型具体信息集合")
//    private ArrayList<CarDetailsAddOrUpdateForm> carDetailsAddOrUpdateForms =new ArrayList<>();
}
